home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-06-12 | 2.5 KB | 87 lines |
- # Makefile for library files used by GNU fileutils.
- # Do not use this makefile directly, but only from `../Makefile'.
- # Copyright (C) 1986, 1988, 1989, 1990 Free Software Foundation, Inc.
-
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 2, or (at your option)
- # any later version.
-
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
-
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, write to the Free Software
- # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
- SHELL = /bin/sh
- YACC = bison -y
- CC = cgcc
- AR = car
- RANLIB = car s
- CFLAGS = -DSTPCPY_MISSING -DSTRDUP_MISSING -DMKFIFO_MISSING\
- -DFTRUNCATE_MISSING -DFCHMOD_MISSING -DFTIME_MISSING\
- -I. -I../lib -O -fstrength-reduce
-
- SOURCES = argmatch.c backupfile.c basename.c dirname.c eaccess.c \
- error.c fileblocks.c filemode.c getopt.c getopt1.c \
- getversion.c globmat.c idcache.c isdir.c makepath.c mkrmdir.c mktime.c \
- modechange.c regex.c rename.c savedir.c stpcpy.c \
- strdup.c stripslash.c xmalloc.c xstrdup.c xwrite.c yesno.c \
- getdate.y posixtime.y
-
- OBJECTS = argmatch.o backupfile.o basename.o dirname.o eaccess.o \
- error.o fileblocks.o filemode.o getopt.o getopt1.o \
- getversion.o globmat.o idcache.o isdir.o makepath.o mkrmdir.o mktime.o \
- modechange.o regex.o rename.o savedir.o stpcpy.o \
- strdup.o stripslash.o xmalloc.o xstrdup.o xwrite.o yesno.o \
- getdate.o posixtime.o
-
- DISTFILES = Makefile backupfile.h getopt.h modechange.h regex.h $(SOURCES)
-
- all: libfu.olb
- .PHONY: all
-
- install: all
- .PHONY: install
-
- tags: $(SOURCES)
- ctags $(SOURCES)
-
- TAGS: $(SOURCES)
- etags $(SOURCES)
-
- clean:
- rm -f *.a *.o tags TAGS getdate.c posixtime.c tposixtime.c
- .PHONY: clean
-
- dist:
- ln $(DISTFILES) ../$(DISTDIR)/lib
- .PHONY: dist
-
- libfu.olb: $(OBJECTS)
- $(AR) cr $@ $(OBJECTS)
- -$(RANLIB) $@
-
- getdate.c: getdate.y
- @echo expect 8 shift/reduce conflicts
- $(YACC) getdate.y
- mv y.tab.c getdate.c
-
- # Make the rename atomic, in case sed is interrupted and later rerun.
- posixtime.c: posixtime.y
- $(YACC) posixtime.y
- sed -e 's/yy/zz/g' y.tab.c > tposixtime.c
- mv tposixtime.c posixtime.c
- rm y.tab.c
-
- backupfile.c getversion.c: backupfile.h
-
- getopt1.c: getopt.h
-
- modechange.o: modechange.h
-
- regex.c: regex.h
-